package com.hzj.service;

import com.hzj.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;

@Service
@FeignClient(name = "PROVIDER-HOSP-8002")
public interface HospitalService {

    @PostMapping("/provider/admin/hosp/hospitalInfo/listPage/{page}/{limit}")
    Result listPage(@PathVariable int page, @PathVariable int limit, @RequestParam(required = false) Integer provinceCode, @RequestParam(required = false) Integer cityCode,@RequestParam(required = false) String hosname);

    @PostMapping("/provider/admin/hosp/hospitalInfo/showHospDetail/{id}")
    Result showHospDetail(@PathVariable int id);

    @PostMapping("/provider/admin/hosp/department/getDeptList/{hoscode}")
    Result getDeptList(@PathVariable String hoscode);

    @PostMapping("/provider/admin/hosp/schedule/getScheduleRule/{page}/{limit}/{hoscode}/{depcode}")
    public Result getScheduleRule(@PathVariable Integer page, @PathVariable Integer limit, @PathVariable String hoscode, @PathVariable Integer depcode);

    @PostMapping("/provider/admin/hosp/schedule/getScheduleDetail/{hoscode}/{depcode}/{workDate}")
    Result getScheduleDetail(@PathVariable String hoscode, @PathVariable Integer depcode, @PathVariable String workDate);

    @PostMapping("/provider/admin/hosp/schedule/downExcel")
    public String downExcel();
}
